home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
util
/
dir
/
managers.lha
/
Managers
/
Dir
/
Dir.lha
< prev
next >
Wrap
Text File
|
1997-01-15
|
1KB
|
73 lines
G4C
WinBig -1 -1 500 45 'Pack selected files/dirs to :'
WinType 11110001
Box 0 0 0 0 out button
xOnLoad
gosub dir.lha startup
xOnReload
gosub dir.lha startup
xRoutine StartUp
setscreen dir.lha $lv_fmscreen
setvar lha_id $$LV_ID
setvar lha_dir $$LV_DIR
setvar old_dir $$CURRENT_DIR
cd $lha_dir
lvmulti dir.gc $lha_id first
if $lv_file = ""
ezreq "LHA:\nChoose some files first\nwhy don't you ?" OK ""
guiquit dir.lha
stop
endif
guiopen dir.lha
xOnOpen
setgad dir.lha 2 ON
xOnClose
guiquit dir.lha
xOnQuit
cd $old_dir
delvar lha_#?
xOnFail
guiwindow dir.lha resume
;========================= Gadgets
xTextIn 5 2 490 20 "" lha_string "RAM:MyArc.lha" 130
gadid 2
xbutton 10 25 100 15 "Pack"
setvar lha_pack 'c:lha -r -x a $lha_string'
while $lv_file > ""
extract lv_file file lha_file
appvar lha_pack ' $lha_file'
lvmulti dir.gc $lha_id next
endwhile
setwintitle dir.lha "Packing files..."
LAUNCH 1 '$lha_pack'
guiwindow dir.lha wait
xOnReturn 1
guiwindow dir.lha resume
guiquit dir.lha
xbutton 140 25 100 15 "Browse.."
setvar lha_req ""
ReqFile -1 -1 300 -40 'Destination archive:' SAVE lha_string RAM:
if $lha_req > ""
update dir.lha 2 $lha_req
endif
xButton 390 25 100 15 CANCEL
GuiQuit dir.lha